#pragma once
#include <iostream>
#include <string>
#include <vector>
#include <istream>
using namespace std;
class IpAdress
{

public:
	string ip = " ";
	int Uppkopplingar;
	IpAdress()
	{
		ip = " ";
		Uppkopplingar = 0;
	}
	IpAdress(int b,string a)
	{
		this->ip = a;
		this->Uppkopplingar = b;
	}
	string getIp(){ return ip; }
	int getUppkopplingar(){ return Uppkopplingar; }
	void setUppkopplingar(int x)
	{
		this->Uppkopplingar = x;
	}
	
	friend bool operator<(const IpAdress &ip1, const IpAdress &ip2)
	{
		return ip1.Uppkopplingar < ip2.Uppkopplingar;
	}


	~IpAdress()
	{
	}
};

